//app.js
const App = require('/utils/ald-stat.js').App
const util = require('/utils/util.js')
App({
        globalData: {
//https://xq.shzxcx.com     http://192.168.0.66:8020    //https://xqtest.shzxcx.com    http://192.168.0.122:8020
                appurl: "http://192.168.0.66:8020",
                vdCount: 0,
                navHeight:0,//系统头部高度
                platform:null,//系统类型
                screenHeight:null,//系统高度
                windowHeight:null,//窗口高度
                entrance:null,//入口监听
                scene:null
        },
        onLaunch: function (options) {
                this.globalData.scene = options.scene
                var that=this
                wx.getSystemInfo({
                        success: res => {
                                // console.log(res)
                                //导航高度windowHeight
                                this.globalData.windowHeight = res.windowHeight,
                                this.globalData.screenHeight = res.screenHeight
                                this.globalData.navHeight = res.statusBarHeight;
                                this.globalData.platform = res.platform;
                        }
                })
        }
        
})